package com.exex.forceoffline

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.exex.forceoffline.R
import android.content.Intent
import android.os.BatteryManager
import android.view.View
import android.widget.Button

class MainActivity : AppCompatActivity() {
    private var mFinish: Button? = null

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        mFinish = findViewById<View>(R.id.finish) as Button
        mFinish!!.setOnClickListener {
            val intent = Intent("finish")
            sendBroadcast(intent)
        }

    }

}